package com.example.interfaces.dto;

import com.example.infrastructure.excel.ExcelExportable;
import com.example.infrastructure.excel.ExcelImportable;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.*;

/**
 * 系统用户表 DTO
 *
 * @author wangal
 * @since 2025-07-25
 */
@Data
@Schema(name = "SysUsersDTO", description = "系统用户表DTO")
public class SysUsersDTO implements ExcelExportable, ExcelImportable {

    @Schema(description = "用户名")
    @ExcelProperty("用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;
    
    @Schema(description = "密码哈希")
    @ExcelProperty("密码哈希")
    @NotBlank(message = "密码哈希不能为空")
    private String passwordHash;
    
    @Schema(description = "手机号")
    @ExcelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;
    
    @Schema(description = "邮箱")
    @ExcelProperty("邮箱")
    @NotBlank(message = "邮箱不能为空")
    private String email;
    
    @Schema(description = "昵称")
    @ExcelProperty("昵称")
    @NotBlank(message = "昵称不能为空")
    private String nickname;
    
    @Schema(description = "头像URL")
    @ExcelProperty("头像URL")
    @NotBlank(message = "头像URL不能为空")
    private String avatar;
    
    @Schema(description = "状态：1正常，0禁用")
    @ExcelProperty("状态：1正常，0禁用")
    private Byte status;
    
    @Schema(description = "租户编号")
    @ExcelProperty("租户编号")
    @NotNull(message = "租户编号不能为空")
    private Long tenantId;
    
}
